#
# RemotePlaylistViewItem.py
#
# This work is released under the GNU GPL, version 2 or later.
#

from qt import *
from PlaylistViewItem import *

class RemotePlaylistViewItem(PlaylistViewItem):
	def __init__(self,container,track,index):
		PlaylistViewItem.__init__(self,container,track,index)
		#self.setDragEnabled(False)

	def contextMenu(self,pos,col):
		menu = QPopupMenu()
		self.addContextMenuItems(menu)
		item = menu.exec_loop(pos)
	
	def addContextMenuItems(self,menu):
		status = self._track.playStatus
		if status=='playing':
			menu.insertItem(i18n("Pause"),self.pause)
		else:
			menu.insertItem(i18n("Play"),self.play)
		menu.insertItem(i18n("Get Info..."),self.getInfo)
	
	def setRenamableItems(self):
		pass

	def clickedRatingAt(self,px):
		pass
